<?php
defined('BASEPATH') OR ('No direct script access allowed');

class Mp_main extends CI_Model
{
    public function __construct()
    {
        parent::__construct();
    }

    function Show_Portal($mainBody, $cssHeader = '', $pageTitle, $data, $javaScript = '')
    {
        $data['userObj']         = User::GetCurrentUser();
        $data['siteName']        = $this->config->item("site_name");
        $data['logoPath']        = $this->config->item("logo_path");
        $data['favicon']         = $this->config->item("favicon");
        $data['url']             = $this->config->item("url");
        $data['copyright']       = $this->config->item("copyright");
        $data['pageTitle']       = $pageTitle;
        $data['mainPlaceHolder'] = $mainBody;
        $data['jsPlaceHolder']   = $javaScript;
        $data['cssPlaceHolder']  = $cssHeader;
        $this->load->view('public/master', $data);
    }
}